﻿@using Mulala.Cavan.Presentation.Mvc.Controller
@model Mulala.Cavan.Presentation.Mvc.ViewModel.IUserAccountViewModel
<div class="batext">
    <ul>
        <li><a href="#" style="padding-left: 28px;" onmouseover="javascript:cput1('1')">用户登录</a></li>
        <li><a href="#" onmouseover="javascript:cput1('2')">
            <img src="../../Images/Main/girl.jpg" alt="女士" />家政人员通道</a></li>
    </ul>
</div>
<div id="1">
    @using (Html.BeginForm(ActionConst.LOGIN, ControllerConst.USERACCOUNT))
    {
        <ul>
            <li>用户名： @Html.TextBoxFor(m => m.Item.LoginName, new { id = "userName", @class = "tx", onfocus = @Html.Raw("if(value=='请输入您的用户名') {value=''}"), onblur = @Html.Raw("if(value=='') {value='请输入您的用户名'}"), value = "请输入您的用户名" })</li>
            <li>密&nbsp;&nbsp;&nbsp;&nbsp;码：
                @Html.PasswordFor(m => m.Item.Password, new { id = "pwd", @class = "pw", onfocus = @Html.Raw("if(value=='请输入您的密码') {value=''}"), onblur = @Html.Raw("if(value=='') {value='请输入您的密码'}"), value = "请输入您的密码" })
                <a href="#">
                    <h2 style="padding-top: 8px;">
                        忘记密码</h2>
                </a></li>
            @Html.ValidationSummary()
            <li class="zidong">
                @Html.CheckBoxFor(m => m.AutoLogin)自动登录<font>&nbsp;(仅限普通用户)</font></li>
            <li class="denglu_zhuce">
                <input type="submit" value="登录" id="submit" class="denglu" />
                <a class="newzhuce" href="#">注册新用户</a></li>
        </ul>
    }
</div>
<div id="2" style="display: none;">
    <ul>
        <li>用户名：<input class="tx" id="userName" name="userName" type="text" onfocus="if(value=='请输入您的用户名') {value=''}"
            onblur="if(value=='') {value='请输入您的用户名'}" value="请输入您的用户名" /></li>
        <li>密&nbsp;&nbsp;&nbsp;&nbsp;码：<input class="pw" id="pwd" name="pwd" type="password"
            onfocus="if(value=='请输入您的密码') {value=''}" onblur="if(value=='') {value='请输入您的密码'}"
            value="请输入您的密码" /><a href="#"><h2 style="padding-top: 8px;">
                忘记密码</h2>
            </a></li>
        <li class="zidong">
            <input type="checkbox" />自动登录<font>&nbsp;(仅限家政用户)</font></li>
        <li class="denglu_zhuce">
            <input type="button" value="登录" class="denglu" onclick="f_user();"><a class="newzhuce"
                href="#" />注册新用户</a></li>
    </ul>
</div>
